/*
 * @Author: DUST
 * @Date: 2023-05-17 14:32:37
 * @LastEditors: DUST
 * @LastEditTime: 2023-06-29 09:52:17
 * @FilePath: \vite-project\src\router\browse.ts
 * @Description: 
 * undefined
 */
import { RouteMenuInterface } from "@/interface";
import { RouterView } from "vue-router";

const browseRoute: Array<RouteMenuInterface> = [
  {
    path: "/browseIndex",
    name: "browseIndex",
    component: () => import("@/views/browse/index/index.vue"),
    meta: {
      title: "首页",
      key: "browseIndex",
      isNotNeedLogin: true
    },
  },
  {
    path: "/learning",
    name: "learning",
    component: RouterView,
    meta: {
      title: "疑难杂症",
      key: "learning"
    },
    children: [
      {
        path: "",
        name: "noteList",
        component: () => import("@/views/browse/noteList/index.vue"),
        meta: {
          title: "疑难记录",
          key: "noteList",
          isNotNeedLogin: true
        },
      },
      {
        path: "noteDetails/:id",
        name: "noteDetails",
        component: () => import("@/views/browse/noteList/details.vue"),
        meta: {
          title: "记录详情",
          key: "noteDetails",
          isNotNeedLogin: true,
          noShow: true
        },
      }
    ]
  },
  {
    path: "/lifeStyle",
    name: "lifeStyle",
    component: RouterView,
    meta: {
      title: "生活记录",
      key: "lifeStyle"
    },
    children: [
      {
        path: "",
        name: "website",
        component: () => import("@/views/browse/website/index.vue"),
        meta: {
          title: "实用导航",
          key: "website",
          isNotNeedLogin: true
        },
      }
    ]
  }
]

export default browseRoute;
